package io.gitee.xyuesheng.day04;

public interface Inserter {
    static final int NAME = 1;

    void Insert();

    void getName();
}

interface Deleter {
    void delete();
}

interface Udpate {
    void udpate();
}

interface Searcher {
    void search();
}

//DAO data access odject
//接口可以继承另外的接口
//接口可以继承多个接口
interface Dao extends Inserter, Udpate, Deleter, Searcher {

}

//接口用来被实现的（implements)
//extends
class InsertHelper implements Inserter {
    @Override
    public void Insert() {
        System.out.println("插入数据。。。");
    }

    @Override
    public void getName() {
        System.out.println("getName...");
    }
}

class InsertUdpate implements Inserter, Udpate {

    @Override
    public void Insert() {

    }

    @Override
    public void getName() {

    }

    @Override
    public void udpate() {

    }
}

//implements
class DaoImpl implements Dao {

    @Override
    public void Insert() {

    }

    @Override
    public void getName() {

    }

    @Override
    public void delete() {

    }

    @Override
    public void udpate() {

    }

    @Override
    public void search() {

    }
}
